package com.norteksoft.erm.model;

import org.apache.commons.lang.builder.HashCodeBuilder;

public class Operation extends BaseObject {

	private String privilege;// 权限

	private Long webModuleID;// 模块ID

	private String resourceID;// 资源ID

	public int hashCode() {
		return new HashCodeBuilder().append(privilege).append(webModuleID)
				.append(resourceID).toHashCode();
	}

	public Operation() {
	}

	/**
	 * @hibernate.property name="privilege" column="PRIVILEGE" type="string"
	 *                     length="255"
	 */
	public String getPrivilege() {
		return privilege;
	}

	public void setPrivilege(String privilege) {
		this.privilege = privilege;
	}

	/**
	 * @hibernate.property name="resourceID" column="RESOURCEID" type="string"
	 *                     length="255"
	 */
	public String getResourceID() {
		return resourceID;
	}

	public void setResourceID(String resourceID) {
		this.resourceID = resourceID;
	}

	/**
	 * @hibernate.property name="webModuleID" column="WEBMODULEID" type="long"
	 */
	public Long getWebModuleID() {
		return webModuleID;
	}

	public void setWebModuleID(Long webModuleID) {
		this.webModuleID = webModuleID;
	}
}
